<template>
  <div class="model-body">
    <div class="title">参与实验室间的统计再现性与推荐试验方法的</div>
    <dv-decoration-5 style="width:100%;height:30px;color:" :color="['#ffffff', '#1C5BEC']" :dur="5" />
    <div class="table">
      <table width="100%" border="1" align="center" cellspacing="0" cellpadding="0">
        <tr>
          <th>试验项目</th>
          <th>单位</th>
          <th>中位值</th>
          <th>参与实验室间的统计再现性</th>
          <th>推荐试验方法的规定再现性</th>
        </tr>
        <tr v-for="item in datas" :key="item.ItemName">
          <td>{{ item.ResultName }}</td>
          <td>{{ item.ResultUnit }}</td>
          <td>{{ item.MedianValue }}</td>
          <td>{{ item.LabReproducibility }}</td>
          <td>{{ item.MethodReproducibility }}</td>
        </tr>
      </table>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { defineProps, reactive, onMounted, onUnmounted } from "vue";

const props = defineProps({
  datas: {
    type: Object,
    required: true
  }
})
const timeInfo = reactive({
  setInterval: 0,
  dateDay: "",
  dateYear: "",
  dateWeek: "",
})
// 生命周期
onMounted(() => {
})
onUnmounted(() => {
  clearInterval(timeInfo.setInterval)
})
</script>

<style lang="scss" scoped>
.model-body {
  width: 100%;

  .title {
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 26px;
    color: #ffffff;
    // margin-bottom: 10px;
  }

  table {
    border-color: #ffffff;

    th {
      padding: 6px;
    }

    td {
      padding: 6px;
    }
  }
}
</style>
